func max(a,b int) int{
    if a>b{
        return a
    }
    return b
}

func findLengthOfLCIS(nums []int) int {
    n:=len(nums)
    maxlen:=0
    for l:=0;l<n;l++{
        r:=l+1
        for r<n&&nums[r]>nums[r-1]{
            r++
        }
        maxlen=max(r-l,maxlen)
    }
    return maxlen
}
